<?php

use app\common\model\User;
use think\migration\Seeder;

class CreateDefaultUser extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        User::create([
            'nickname'=>'冬瓜',
            'username'=>'admin',
            'password'=>md5('123456'),
            'create_time'=>time()
        ]);
    }


}